var gulp = require('gulp'), //本地安装gulp所用到的地方
    rev = require('gulp-rev-append');
gulp.task('rev',function(){
  return gulp.src('src/gulp-rev-append.html')
  .pipe(rev())
  .pipe(gulp.dest('dist/'));
})
gulp.task('copyfile',function(){
  var src = [
    'src/js/gulp-rev-append.js',
    'src/css/index.css',
    'src/img/*'
  ],
    dist = 'dist';
    return gulp.src(src)
    .pipe(gulp.dest(dist));
})
gulp.task('gulp-rev-append',['copyfile','rev']);